import request from '@/utils/request'

// 首页统计
export function user_total() {
  return request({
    url: '/system/my-user/total',
    method: 'get'
  })
}

//盈亏显示
export function user_profit() {
  return request({
    url: '/system/admin/ptxf',
    method: 'post'
  })
}

//一番赏盈亏
export function user_profit_one(data) {
  return request({
    url: '/system/admin/yfsYk?start=' + data.start + '&end=' + data.end,
    method: 'post'
  })
}

//无限赏盈亏
export function user_profit_infinite(data) {
  return request({
    url: '/system/admin/wxsYk?start=' + data.start + '&end=' + data.end,
    method: 'post'
  })
}

//首页分状态用户统计
export function tongji(data) {
  return request({
    url: '/system/admin/whetherPrivilegeStatistics?type=' + parseInt(data),
    method: 'post'
  })
}

export function getUserBagTop() {
  return request({
    url: '/system/admin/userBagTop',
    method: 'get',
  });
}
